<?
/**
 * class <b>Hli_ErrorType Class</b>
 * Published 21/12/2010 03:45:13
 *
 * Defines HLI error types.
 *
 * @author Lars Sorhus (lars@saucecode.com.au)
 * @copyright sauceCode Pty Ltd.
 * @version 2.0.4.342.
 * @internal It's not recommended at all to modify this code.
 */
class Hli_ErrorType{
	const SEVERITY_LOW="SEVERITY_LOW";
	const SEVERITY_MEDIUM="SEVERITY_MEDIUM";
	const SEVERITY_HIGH="SEVERITY_HIGH";
	private $__code=NULL;
	private $__message=NULL;
	private $__severity=NULL;

   /**
    * Constructor
    *
    * @param <type> $code - error message code
    * @param <type> $message - error message
    * @param <type> $severity - severity level
    */
	public function  __construct($code=NULL,$message=NULL,$severity=NULL){
		$this->__code=$code;
		$this->__message=$message;
		$this->__severity=$severity;
	}

	/**
    * Gets the error code.
    *
	 * @method getErrorCode
	 * @return string
	 */
	public function getErrorCode(){
		return($this->__code);
	}

	/**
    * Sets the error code.
    *
	 * @method setErrorCode
	 * @param string
	 * @return void
	 */
	public function setErrorCode($code){
		$this->__code=$code;
	}

	/**
    * Gets the error message.
    *
	 * @method getErrorMessage
	 * @return string
	 */
	public function getErrorMessage(){
		return($this->__message);
	}
	/**
    * Sets the error message.
    *
	 * @method setErrorMessage
	 * @param string
	 * @return void
	 */
	public function setErrorMessage($msg){
		$this->__message=$msg;
	}

	/**
    * Get error severity.
    *
	 * @method getErrorSeverity
	 * @return string
	 */
	public function getErrorSeverity(){
		return($this->__severity);
	}
	/**
    * Sets error severity.
    *
	 * @method setErrorSeverity
	 * @param string
	 * @return void
	 */
	public function setErrorSeverity($severity){
		$this->__severity=$severity;
	}
}
?>
